"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    const { INTEGER, STRING, DATE } = Sequelize;
    await queryInterface.createTable("teleplay_list", {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      tv_id: INTEGER(11),
      link: STRING(100),
      idx: INTEGER(4),
      play_name: STRING(100),
      created_at: DATE,
      updated_at: DATE,
    });
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.dropTable("teleplay_list");
  },
};
